package com.study.manage.dal;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.study.manage.domain.EvaluatePrize;
import com.study.manage.domain.enumm.LiveDieState;

public interface EvaluatePrizeRepository extends PagingAndSortingRepository<EvaluatePrize, Long> {

    int countByEvaluateIdAndState(Long evaluateId, LiveDieState state);

    Page<EvaluatePrize> findByEvaluateIdAndState(Long evaluateId, LiveDieState state,
            Pageable pageable);

    List<EvaluatePrize> findByEvaluateIdInAndState(List<Long> evaluateId, LiveDieState state);

}
